package com.yuyou.train.user.mapper;

import java.util.List;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.yuyou.train.service.api.user.entity.UserHw;
import com.yuyou.train.user.vo.resp.RespUserHwBeConfig;
import com.yuyou.train.util.bean.Pagination;

@Mapper
public interface UserHwMapper {
	int deleteByPrimaryKey(String id);

	int insert(UserHw record);

	UserHw selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(UserHw record);

	List<UserHw> findUserHwPageList(Pagination<UserHw> p);

	int findUserHwPageCount(Pagination<UserHw> p);

	List<UserHw> findUserHw(UserHw userHw);

	UserHw selectUserHwByStatus(@Param(value = "userId") String userId,
			@Param(value = "lessonId") String lessonId,
			@Param(value = "status") String status);

	UserHw selectOnlyUserHwLock(@Param(value = "userId") String userId,
			@Param(value = "lessonId") String lessonId);

	List<RespUserHwBeConfig> findUserConfigList(
			@Param(value = "userHwTeacherId") String userHwTeacherId);

}